home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / S / SillyIcons / IconPlotting.h next >
Encoding:
C/C++ Source or Header  |  1991-12-06  |  1.3 KB  |  61 lines  |  [TEXT/MPS ]

  1. /*    Based upon Tech Note 306, "Drawing Icons the System 7 Way".  */
  2. /*    John W. Baxter */
  3.  
  4. #ifndef __PLOTICON__
  5. #define __PLOTICON__
  6.  
  7. #ifndef __TYPES__
  8.     #include <Types.h>
  9. #endif
  10.  
  11. #ifndef __QUICKDRAW__
  12.     #include <QuickDraw.h>
  13. #endif
  14.  
  15. #ifndef __ICONS__
  16.     #include <Icons.h>
  17. #endif
  18.  
  19.     /* IconTransformType values */
  20. #define    ttNone                0x0
  21. #define    ttDisabled            0x1
  22. #define    ttOffline            0x2
  23. #define    ttOpen                0x3
  24. #define    ttSelected            0x4000
  25. #define    ttSelectedDisabled    (ttSelected + ttDisabled)
  26. #define    ttSelectedOffline    (ttSelected + ttOffline)
  27. #define    ttSelectedOpen        (ttSelected + ttOpen)
  28.  
  29.     /* Label color blend values...add to above transform values */
  30. #define    ttLabel0 0x0000
  31. #define    ttLabel1 0x0100
  32. #define    ttLabel2 0x0200
  33. #define    ttLabel3 0x0300
  34. #define    ttLabel4 0x0400
  35. #define    ttLabel5 0x0500
  36. #define    ttLabel6 0x0600
  37. #define    ttLabel7 0x0700
  38.  
  39. typedef short IconAlignmentType;
  40. typedef short IconTransformType;
  41.  
  42. #ifdef __cplusplus
  43. extern "C" {
  44. #endif
  45. pascal OSErr PlotIconID(Rect *theRect,
  46.                          IconAlignmentType align,
  47.                          IconTransformType transform,
  48.                          short theResID)
  49.         = {0x303C, 0x0500, 0xABC9};
  50.  
  51. pascal OSErr PlotCIconHandle(Rect *theRect,
  52.                              IconAlignmentType align,
  53.                              IconTransformType transform,
  54.                              CIconHandle theCIcon)
  55.         = {0x303C, 0x061F, 0xABC9};
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60.  
  61. #endif